package cn.edu.jsu.zjj.model.entity;

import com.baomidou.mybatisplus.annotation.*;

import java.io.Serializable;
import java.time.LocalDateTime;

import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * <p>
 * 表头表
 * </p>
 *
 * @author fyt
 * @since 2024-06-12
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("sys_header")
public class SysHeader implements Serializable {

    private static final long serialVersionUID = 1L;

    /**
     * 表头ID
     */
    @TableId(value = "id", type = IdType.ASSIGN_ID)
    private Long id;

    /**
     * 资料id
     */
    private Long docuId;

    /**
     * 表头名
     */
    private String name;

    /**
     * 序号
     */
    private int sort;

    /**
     * 键（key + 序号）
     */
    private String headerKey;

    @ApiModelProperty("创建时间")
    private LocalDateTime createTime;

    @ApiModelProperty(value = "更新时间")
    private LocalDateTime updateTime;

    @ApiModelProperty(value = "删除标记")
    @TableLogic
    @TableField(value = "is_delete")
    private Integer isDelete;

    @ApiModelProperty(value = "创建人")
    private Long userId;

    @ApiModelProperty(value = "创建人姓名")
    @TableField(exist = false)
    private String userName;

}
